package cn.dong.cms.feign;

import cn.dong.cms.feign.fillback.OssServiceImpl;
import cn.dong.api.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;

@Service
@FeignClient(value = "service-oss7000", fallback = OssServiceImpl.class)
public interface OssService {

    /**
     * 删除图片
     *
     * @param filePath 阿里存储空间的相对路径：文件夹+文件的路径
     * @return
     */
    @PostMapping("/oss/deleteImg")
    CommonResult delFile(String filePath) ;

}
